package factoryModel.abstractFactoryModel.pizza;

import factoryModel.abstractFactoryModel.ingredient.Cheese;
import factoryModel.abstractFactoryModel.ingredient.Dough;
import lombok.Data;

/**
 * @author 帅小伙
 * @date 2021/12/29
 * @description
 */
@Data
public abstract class Pizza {
    String name;
    Dough dough;
    Cheese cheese;

    abstract void prepare();

    void make() {
        System.out.println("pizza开始制作");
    }


    @Override
    public String toString() {
        return "Pizza{" +
                "name='" + name + '\'' +
                ", dough=" + dough +
                ", cheese=" + cheese +
                '}';
    }
}
